package com.disapand.strongarmy

import com.disapand.strongarmy.service.*
import org.junit.jupiter.api.*
import org.springframework.boot.test.context.*
import javax.annotation.*

/**
 *
 * @auth disapand
 * @date 2021/10/31 - 17:14 - 星期日
 *
 */
@SpringBootTest
class PermissionTest {

    @Resource
    lateinit var permissionService: PermissionService

    @Test
    fun getPermissionAllGroup() {
        permissionService.getPermissionAllGroup().forEach(::println)
    }

    @Test
    fun getPermissionByGroup() {
        val group = "/test"
        permissionService.getPermissionByGroup(group,1, 20)
    }
}